import request from '@/utils/request'

// 媒体下拉列表
export function getMarket() {
    return request({
        url: '/aifanfan/getMarketProductOperationList',
        method: 'post',
    })
}

// 管家账户下拉列表
export function getAccount() {
    return request({
        url: '/aifanfan/getManageAccountOperationList',
        method: 'post',
    })
}

// 投放列表
export function getList(data) {
    return request({
        url: '/aifanfan/getMarketList',
        method: 'post',
        data: data
    })
}

// 管家下拉
export function getManageList(data) {
    return request({
        url: '/aifanfan/getManageAccountOperationList',
        method: 'post',
        data: data
    })
}

// 账户列表
export function getAccountList(data) {
    return request({
        url: '/aifanfan/getAccountList',
        method: 'post',
        data: data
    })
}

// 账户启用状态
export function accountStatus(data) {
    return request({
        url: '/aifanfan/setStatus',
        method: 'post',
        data: data
    })
}

// 潜客列表
export function getFormUserList(data) {
    return request({
        url: '/aifanfan/teacher/getList',
        method: 'post',
        data: data
    })
}

// 分配投放计划时间
export function getTimeList(data) {
    return request({
        url: '/aifanfan/allocate/allocateTimeList',
        method: 'get',
        data: data
    })
}

// 分投放计划列表
export function getPlanList(query) {
    return request({
        url: '/aifanfan/allocate/list',
        method: 'get',
        params: query
    })
}

// 保存分配投放计划
export function planSave(data) {
    return request({
        url: '/aifanfan/allocate/save',
        method: 'post',
        data: data
    })
}

// 删除分配投放计划
export function planDelete(data) {
    return request({
        url: '/aifanfan/allocate/delete',
        method: 'post',
        data: data
    })
}

// 投放角色用户列表
export function getLaunchList(data) {
    return request({
        url: '/user/getListByLaunchRole',
        method: 'post',
        data: data
    })
}

// 已分配老师列表
export function aifanfanTeacherList(data) {
    return request({
        url: '/aifanfan/teacher/aifanfanTeacherList',
        method: 'post',
        data: data
    })
}

// 添加分配老师
export function teacherAdd(data) {
    return request({
        url: '/aifanfan/teacher/addUpdate',
        method: 'post',
        data: data
    })
}

// 删除已分配老师
export function teacherDelete(data) {
    return request({
        url: '/aifanfan/teacher/delete',
        method: 'post',
        data: data
    })
}

// 手动分配老师
export function assignTeacher(data) {
    return request({
        url: '/aifanfan/teacher/aifanfanTeacherAssign',
        method: 'post',
        data: data
    })
}

//分时数据列表
export function getHourList(data) {
    return request({
        url: '/flow_control/getHourList',
        method: 'post',
        data: data
    })
}
// 是否直播间账户
export function setIsLive(data) {
    return request({
        url: '/aifanfan/setIsLive',
        method: 'post',
        data: data
    })
}